/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-10-16
 * Time: 19:18
 */
public class test_3 {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     *
     * @param numbers int整型一维数组
     * @return bool布尔型
     */
    public boolean IsContinuous(int[] numbers) {
        int max = -1;
        int min = 14;
        for (int x : numbers) {
            if (x != 0){
                if (x == max || x == min) {
                    return false;
                } else {
                    max = Math.max(max, x);
                    min = Math.min(min, x);
                }
            }
        }
        int len = max - min + 1;
        return len <= numbers.length;
    }
}
